<?php
namespace Admin\Controller;
use Think\Controller;
class CommonController extends Controller {
    public function _initialize(){
        session_start();
//        if(!isset($_SESSION['admin'])){
//            $this->error('您还有没有登录呢',U('Admin/Login/index'));
//            exit;
//        }
    }
    //404

    function _empty(){
        header("HTTP/1.0 404 Not Found");//使HTTP返回404状态码
        $this->display("Public:404");
    }

    function  index(){

        header( "HTTP/1.0 404 Not Found" );

        $this->display( 'Public:404' );
    }
}